//
//  APIError.m
//  HttpNetWork
//
//  Created by admin on 2019/4/22.
//  Copyright © 2019年 admin. All rights reserved.
//

#import "APIError.h"

@implementation APIError

+ (instancetype)errorWith:(APIErrorType)errorType info:(NSString*)info{
    
    APIError* error = [APIError new];
    error.errorType = errorType;
    error.errorInfo = info;
    
    return error;
}

@end
